#include <stdio.h>

int main() {
	int a[50]={0},i=0,x,m;
	scanf("%d", &x);
	while(x!=0){
	a[i]=x%2;
	x=x/2;
	i++;
	}
	for(m=0;m<i;m++){
	printf("%d", a[i-m-1]);
	}}
